Integrand size = 35, antiderivative size = 210 \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=-\frac {(A+i B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a-b)^{3/2} d}+\frac {(A-i B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a+b)^{3/2} d}-\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}} \]
[Out]
Time = 0.83 (sec) , antiderivative size = 210, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4326, 3689, 3697, 3696, 95, 209, 212} \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=-\frac {2 (A b-a B)}{d \left (a^2+b^2\right ) \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {(A+i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \arctan \left (\frac {\sqrt {-b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (-b+i a)^{3/2}}+\frac {(A-i B) \sqrt {\tan (c+d x)} \sqrt {\cot (c+d x)} \text {arctanh}\left (\frac {\sqrt {b+i a} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{d (b+i a)^{3/2}} \]
[In]
[Out]
Rule 95
Rule 209
Rule 212
Rule 3689
Rule 3696
Rule 3697
Rule 4326
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {\sqrt {\tan (c+d x)} (A+B \tan (c+d x))}{(a+b \tan (c+d x))^{3/2}} \, dx \\ & = -\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}-\frac {\left (2 \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {-\frac {1}{2} b (A b-a B)-\frac {1}{2} b (a A+b B) \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{b \left (a^2+b^2\right )} \\ & = -\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((i a+b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {1-i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )}-\frac {\left ((a+i b) (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \int \frac {1+i \tan (c+d x)}{\sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}} \, dx}{2 \left (a^2+b^2\right )} \\ & = -\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((i a+b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{(1+i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 \left (a^2+b^2\right ) d}-\frac {\left ((a+i b) (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{(1-i x) \sqrt {x} \sqrt {a+b x}} \, dx,x,\tan (c+d x)\right )}{2 \left (a^2+b^2\right ) d} \\ & = -\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}}+\frac {\left ((i a+b) (A+i B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-(-i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d}-\frac {\left ((a+i b) (i A+B) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{1-(i a+b) x^2} \, dx,x,\frac {\sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\left (a^2+b^2\right ) d} \\ & = -\frac {(A+i B) \arctan \left (\frac {\sqrt {i a-b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a-b)^{3/2} d}+\frac {(A-i B) \text {arctanh}\left (\frac {\sqrt {i a+b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right ) \sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)}}{(i a+b)^{3/2} d}-\frac {2 (A b-a B)}{\left (a^2+b^2\right ) d \sqrt {\cot (c+d x)} \sqrt {a+b \tan (c+d x)}} \\ \end{align*}
Time = 2.35 (sec) , antiderivative size = 259, normalized size of antiderivative = 1.23 \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\frac {\sqrt {\cot (c+d x)} \sqrt {\tan (c+d x)} \left (-\frac {\sqrt [4]{-1} a (a+i b) (A-i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {-a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {-a+i b}}+\frac {\sqrt [4]{-1} a (a-i b) (A+i B) \arctan \left (\frac {\sqrt [4]{-1} \sqrt {a+i b} \sqrt {\tan (c+d x)}}{\sqrt {a+b \tan (c+d x)}}\right )}{\sqrt {a+i b}}+\frac {2 b (A b-a B) \tan ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \tan (c+d x)}}+2 (-A b+a B) \sqrt {\tan (c+d x)} \sqrt {a+b \tan (c+d x)}\right )}{a \left (a^2+b^2\right ) d} \]
[In]
[Out]
result has leaf size over 500,000. Avoiding possible recursion issues.
Time = 1.32 (sec) , antiderivative size = 1559507, normalized size of antiderivative = 7426.22
\[\text {output too large to display}\]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18672 vs. \(2 (170) = 340\).
Time = 7.01 (sec) , antiderivative size = 18672, normalized size of antiderivative = 88.91 \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\int \frac {A + B \tan {\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{\frac {3}{2}} \sqrt {\cot {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\int { \frac {B \tan \left (d x + c\right ) + A}{{\left (b \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\cot \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \tan (c+d x)}{\sqrt {\cot (c+d x)} (a+b \tan (c+d x))^{3/2}} \, dx=\int \frac {A+B\,\mathrm {tan}\left (c+d\,x\right )}{\sqrt {\mathrm {cot}\left (c+d\,x\right )}\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]